package cn.tansanqinger.DesignMode.Singleton;
class Message{
    public Message(){
        System.out.println("构造方法");
    }
    public void printf(){
        System.out.println("C3H2");
    }
}
public class SingletonDesignDemo {
    public static void main(String[] args) {
        Message messageA = new Message();
        Message messageB = new Message();
        messageA.printf();
        messageB.printf();
    }
}
